package com.baitengsoft.patentservicemonitor.api.dao;

import com.baitengsoft.patentservicemonitor.api.entity.RptApplicantEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by 周俊 on 2018/1/16.
 */
@Mapper
public interface RptApplicantDao extends BaseDao<RptApplicantEntity> {

    /**
     * 删除某平台所有数据
     * @param PlatformID 平台id
     * @param ApplicantID 权利人id
     */
    void deleteRptApplicant(@Param("PlatformID")Integer PlatformID,@Param("ApplicantID")Integer ApplicantID);

    /**
     * 批量插入数据
     * @param PlatformID 平台id
     * @param ApplicantId 权利人id
     * @param PatAddressLast 权利人地址
     * @param ApplyPerson 权利人姓名
     * @param ApplyPersonType 权利人类型
     */
    void insertRptApplicant(@Param("PlatformID")Integer PlatformID,@Param("ApplicantId")Integer ApplicantId,@Param("PatAddressLast")String PatAddressLast,@Param("ApplyPerson")String ApplyPerson,@Param("ApplyPersonType")Integer ApplyPersonType);
}
